export namespace requestConfig {
    export type method = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "DELETE" | "TRACE" | "CONNECT" | undefined
    // 请求参数
    export type request = {
        url: string
        method: method
        data: any
        show: Boolean
        header: any
    }
    // option参数
    export type option = {
        url: string
        method: method
        data: any
        show: Boolean
        header: {
            Authorization?: string
        }
        params?: any
        timeout?: number
        success?(res: object): any
        fail?(err: object): any
    }
    // requestConfig类 config参数
    export type config = {
        url: string
        method: string
        data: any,
        show: Boolean,
        header: {
            Authorization?: string,
            version?: string
        }
        params?: any
        timeout?: number
    }
    // requestConfig 接口
    export interface requestConfig {
        config: config
        requestconfig(option: request): Promise<unknown>
        reponseconfig(res: any): Promise<unknown>
        request(option: request): Promise<unknown>
    }
    // 请求
    export interface requestFn {
        (option: any, proxy: any): Promise<unknown>
    }
}
